package com.sc.nft.entity.dto;

import cn.hutool.db.DaoTemplate;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.ApplicationRequirementUpOrDownEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;
@Data
public class AssessLogAdminPageVO {
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "类型")
    private ApplicationRequirementUpOrDownEnum type;

    @ApiModelProperty(value = "类型描述")
    private String typeDescribe;

    @ApiModelProperty(value = "考核前数量")
    private Integer assessBefore;

    @ApiModelProperty(value = "考核后数量")
    private Integer assessAfter;

    @ApiModelProperty(value = "考核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date assessTime;


    public void setType(ApplicationRequirementUpOrDownEnum type) {
        this.type = type;
        this.typeDescribe = type.getDescribe();
    }
}
